from fileinput import close


class Car:

    def drive(self, speed):
        self.wheels = 4
        print(f"driving!!!{speed}!!!")


    @classmethod  # 类方法
    def stop(cls):
        cls.wheels = 5
        print(cls.wheels)
        print("stopped````````````````")


    @staticmethod  # 静态
    def test():
        print("test==================")


car1 = Car()
car1.drive(100)
print(car1.wheels)
# print(Car.wheels)
car1.color = "red"
print(car1.color)
car1.stop()
car1.test()

